<template>
    <scroller class="news-scroller" :style="newsContentHeight">
        <div class="newscontent">
            <div class="header-notice">
                <image class="news-img" :src="imgUrl('/app/news/nav_back.png')"></image> 
                <image class="news-img" :src="imgUrl('/app/news/collect_pre.png')"></image> 
            </div>
            <div class="news-head">
                <text class="news-title">呼修呼版本升级啦</text>
                <text class="news-time">2018-05-03</text>
            </div>
            <div class="news-content">
                呼修呼版本升级啦呼修呼版本升级啦呼修呼版本升级啦呼修呼版本升级啦呼修呼版本升级啦呼修呼版本升级啦
            </div>
        </div>
    </scroller>
    
    
</template>
<script>
import api from "../../mp";
import Config from "../../config";
import { WxcButton } from 'weex-ui'
export default {
    components: { WxcButton },
    data(){
        return {
           screenHeight:null,
           newsContentHeight: null,  //内容的高度
        }
    },
    created(){
        this.screenHeight = Utils.env.getPageHeight();
        let newHeight = this.screenHeight - 84 - 150 ;
        this.newsContentHeight = { height: newHeight + "px" };
    },
    methods: {
      imgUrl(url) {
        return api.imgDomain + url;
        }
    }
}
</script>
<style lang="scss" scoped>
.newscontent
{
    width: 750px;
    background-color: #f6f6f6;
}
.news-scoller
{
     background-color: #f6f6f6;
}
.header-notice
{
    height: 84px;
    background-color: #ffffff;
    width: 750px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    margin-bottom: 15px;
}
.news-img
{
    width: 42px;
    height: 40px;
}
.news-head
{
    width: 750px;
    padding-left: 54px;
    background-color: #ffffff;
    height: 150px;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-start;

}
.news-title
{
    font-size: 40px;
    font-weight: bold;
}
.news-time
{
    font-size: 24px;
}
.news-content
{   
    width: 750px;
    padding-left: 54px;
    padding-right: 54px;
    padding-top: 30px;
    background-color: #ffffff;
}
.news-scroller
{
    flex-direction: column;
    justify-content: space-around;
    background-color: #ffffff;
    align-items: center;
}
</style>

<style scoped src="../../resource/css/base.css"></style>
<style scoped src="../../resource/css/main.css"></style>
